/*
 * @Author: mayijun
 * @Date: 2022-06-21 18:49:29
 * @LastEditors: mayijun
 * @LastEditTime: 2022-06-29 17:26:05
 */
/**
 * 指标开发
 */

const state = {
    metricsEnName: undefined as any, // 原子指标的英文名称
    metricsCnName: undefined as any, // 原子指标的中文名称
    dataModelId: undefined as any, // 数据模型ID
    getDimensionData: [], // 获取维度列表数据
    factTableName:  undefined as any, // 获取模型下的事实表名称
}

const mutations = {
    setMetricsEnName(state: any, name: string) {
        state.metricsEnName = name;
    },
    setMetricsCnName(state: any, name: string) {
        state.metricsCnName = name;
    },
    setDimensionData(state: any, data: [] ) {
        state.getDimensionData = data;
    },
    setDataModelId(state: any, id: any ) {
        state.dataModelId = id;
    },
    setFactTableName(state: any, data: any ) {
        state.factTableName = data;
    },
}

const actions = {}

export default {
    namespaced: true,
    state,
    mutations,
    actions
};